﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CCF RID: 3279
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PassiveSkillItem : IMessage<PassiveSkillItem>, IMessage, IEquatable<PassiveSkillItem>, IDeepCloneable<PassiveSkillItem>, IBufferMessage
	{
		// Token: 0x1700293E RID: 10558
		// (get) Token: 0x06009276 RID: 37494 RVA: 0x00184B80 File Offset: 0x00182D80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PassiveSkillItem> Parser
		{
			get
			{
				return PassiveSkillItem._parser;
			}
		}

		// Token: 0x1700293F RID: 10559
		// (get) Token: 0x06009277 RID: 37495 RVA: 0x00184B87 File Offset: 0x00182D87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PassiveSkillItemReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002940 RID: 10560
		// (get) Token: 0x06009278 RID: 37496 RVA: 0x00184B99 File Offset: 0x00182D99
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PassiveSkillItem.Descriptor;
			}
		}

		// Token: 0x06009279 RID: 37497 RVA: 0x00184BA0 File Offset: 0x00182DA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PassiveSkillItem()
		{
		}

		// Token: 0x0600927A RID: 37498 RVA: 0x00184BA8 File Offset: 0x00182DA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PassiveSkillItem(PassiveSkillItem other) : this()
		{
			this.itemId_ = other.itemId_;
			this.slot_ = other.slot_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600927B RID: 37499 RVA: 0x00184BD9 File Offset: 0x00182DD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PassiveSkillItem Clone()
		{
			return new PassiveSkillItem(this);
		}

		// Token: 0x17002941 RID: 10561
		// (get) Token: 0x0600927C RID: 37500 RVA: 0x00184BE1 File Offset: 0x00182DE1
		// (set) Token: 0x0600927D RID: 37501 RVA: 0x00184BE9 File Offset: 0x00182DE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ItemId
		{
			get
			{
				return this.itemId_;
			}
			set
			{
				this.itemId_ = value;
			}
		}

		// Token: 0x17002942 RID: 10562
		// (get) Token: 0x0600927E RID: 37502 RVA: 0x00184BF2 File Offset: 0x00182DF2
		// (set) Token: 0x0600927F RID: 37503 RVA: 0x00184BFA File Offset: 0x00182DFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Slot
		{
			get
			{
				return this.slot_;
			}
			set
			{
				this.slot_ = value;
			}
		}

		// Token: 0x06009280 RID: 37504 RVA: 0x00184C03 File Offset: 0x00182E03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PassiveSkillItem);
		}

		// Token: 0x06009281 RID: 37505 RVA: 0x00184C11 File Offset: 0x00182E11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PassiveSkillItem other)
		{
			return other != null && (other == this || (this.ItemId == other.ItemId && this.Slot == other.Slot && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009282 RID: 37506 RVA: 0x00184C50 File Offset: 0x00182E50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ItemId != 0U)
			{
				num ^= this.ItemId.GetHashCode();
			}
			if (this.Slot != 0U)
			{
				num ^= this.Slot.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009283 RID: 37507 RVA: 0x00184CA8 File Offset: 0x00182EA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009284 RID: 37508 RVA: 0x00184CB0 File Offset: 0x00182EB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009285 RID: 37509 RVA: 0x00184CBC File Offset: 0x00182EBC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ItemId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.ItemId);
			}
			if (this.Slot != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Slot);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009286 RID: 37510 RVA: 0x00184D18 File Offset: 0x00182F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ItemId);
			}
			if (this.Slot != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Slot);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009287 RID: 37511 RVA: 0x00184D70 File Offset: 0x00182F70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PassiveSkillItem other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ItemId != 0U)
			{
				this.ItemId = other.ItemId;
			}
			if (other.Slot != 0U)
			{
				this.Slot = other.Slot;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009288 RID: 37512 RVA: 0x00184DC0 File Offset: 0x00182FC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009289 RID: 37513 RVA: 0x00184DCC File Offset: 0x00182FCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 80U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Slot = input.ReadUInt32();
					}
				}
				else
				{
					this.ItemId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040037CF RID: 14287
		private static readonly MessageParser<PassiveSkillItem> _parser = new MessageParser<PassiveSkillItem>(() => new PassiveSkillItem());

		// Token: 0x040037D0 RID: 14288
		private UnknownFieldSet _unknownFields;

		// Token: 0x040037D1 RID: 14289
		public const int ItemIdFieldNumber = 3;

		// Token: 0x040037D2 RID: 14290
		private uint itemId_;

		// Token: 0x040037D3 RID: 14291
		public const int SlotFieldNumber = 10;

		// Token: 0x040037D4 RID: 14292
		private uint slot_;
	}
}
